package com.wuyou.controller.administratormanage;

import com.wuyou.service.api.administratormanage.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AdminController
{
    @Autowired
    private AdminService adminService;

    @RequestMapping({"/", "/login"})
    public String redirectToLoginPage()
    {
        return "login";
    }

    @RequestMapping("/login.do")
    public String doLogin(String accountId, String password)
    {
//        if (adminService.isAdministratorExist(accountId, password))
//        {
//            return "index";
//        }
        return "index";
    }


}
